package com.wcs.exam.controller.admin.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * Admin-订单信息-查看响应对象
 * </p>
 *
 * @author wcs
 * @since 2025-03-17
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-订单信息-查看响应对象")
public class AdminOrderInfoViewResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "下单用户编号")
    private Long userId;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "下单用户电话")
    private String mobile;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "下单用户注册时间")
    private LocalDateTime registerTime;

    @Schema(description = "商品类型(1:考试)")
    private Integer goodsType;

    @Schema(description = "商品ID")
    private Long goodsId;

    @Schema(description = "商品名称")
    private String goodsName;

    @Schema(description = "划线价(商品划线价)")
    private BigDecimal linePrice;

    @Schema(description = "订单金额(商品价格)")
    private BigDecimal orderAmount;

    @Schema(description = "实付金额")
    private BigDecimal paidAmount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "到期时间")
    private LocalDateTime expiredTime;

    @Schema(description = "改价(改价后不再校验同步商品最新价格,以修改后的订单价格为准)")
    private Boolean changePrice;

    @Schema(description = "订单状态(1：待支付、2：成功支付、3：支付失败、4：关闭支付)")
    private Integer orderStatus;

    @Schema(description = "支付方式(1：微信支付、2：支付宝支付)")
    private Integer payWay;

    @Schema(description = "支付类型(1：微信扫码、2：微信H5、3：微信APP、4：小程序支付、5：微信JSAPI、6：支付宝扫码、7：支付宝H5、8：支付宝APP)")
    private Integer payType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "支付时间")
    private LocalDateTime payTime;

    @Schema(description = "客户备注")
    private String remarkCus;

    @Schema(description = "后台备注")
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime gmtCreate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "修改时间")
    private LocalDateTime gmtModified;
}
